{extend name="common/layout" /}

{block name="title"}会员管理{/block}
{block name="content"}
<div id="content">

    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form-create" data-toggle="tooltip" title="保存" class="btn btn-primary">
                    <i class="fa fa-save"></i>
                </button>
                <a href="{:url('index')}" data-toggle="tooltip" title="取消" class="btn btn-default">
                    <i class="fa fa-reply"></i>
                </a>
            </div>
            <h1>会员{if condition="is_null($id)"}创建{else/}修改{/if}</h1>
            <ul class="breadcrumb">
                <li>
                    <a href="/back/site/index.html">首页</a>
                </li>
                <li>
                    <a href="/back/brand/index.html">品牌</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="container-fluid">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">
                    <i class="fa fa-pencil"></i>
                    会员{if condition="is_null($id)"}创建{else/}修改{/if}
                </h3>
            </div>
            <div class="panel-body">
                <form action="{:url('set')}" method="post" enctype="multipart/form-data" id="form-create"
                      class="form-horizontal">
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#tab-general" data-toggle="tab">基本信息</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="tab-general">
                            {if condition="!is_null($id)"}

                            <input type="hidden" name="id" value="{$id}">
                            {/if}
                           
<div class="form-group required">
    <label class="col-sm-2 control-label" for="input-name">用户名</label>
    <div class="col-sm-10">
        <input type="text" name="name" value="{$data['name']|default=''}" placeholder="用户名"
               id="input-name" class="form-control"/>

        {if condition="isset($message['name'])"}
        <label class="text-danger" id="input-name-error" for="input-name">{$message['name']}</label>

        {else /}

        {/if}

    </div>
</div>
<div class="form-group required">
    <label class="col-sm-2 control-label" for="input-mark">备注</label>
    <div class="col-sm-10">
        <input type="text" name="mark" value="{$data['mark']|default=''}" placeholder="备注"
               id="input-mark" class="form-control"/>

        {if condition="isset($message['mark'])"}
        <label class="text-danger" id="input-mark-error" for="input-mark">{$message['mark']}</label>

        {else /}

        {/if}

    </div>
</div>

                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}





